﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
using DevExpress.Xpo.Helpers;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    [Persistent("TopSubtask")]
    public class TopSubtask : BaseObject
    {
        //begin
        public TopSubtask()
        {}
        public TopSubtask(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _SubTaskRequest;
        public string SubTaskRequest
        {
            get
            {
                return _SubTaskRequest;
            }
            set
            {
                SetPropertyValue("SubTaskRequest", ref _SubTaskRequest, value);
            }
        }
        private string _SubTaskResult;
        public string SubTaskResult
        {
            get
            {
                return _SubTaskResult;
            }
            set
            {
                SetPropertyValue("SubTaskResult", ref _SubTaskResult, value);
            }
        }
        private bool _IsSuccess;
        public bool IsSuccess
        {
            get
            {
                return _IsSuccess;
            }
            set
            {
                SetPropertyValue("IsSuccess", ref _IsSuccess, value);
            }
        }
        private TopTask _TopTask;
        [Association("TopTaskSubtasks", typeof(TopTask))]
        public TopTask Task
        {
            get
            {
                return _TopTask;
            }
            set
            {
                SetPropertyValue("TopTask", ref _TopTask, value);
            }
        }
        //end

    }
}
